//
//  PieView.h
//  YQPieView
//
//  Created by 杨琴 on 16/8/25.
//  Copyright © 2016年 杨琴. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface PieModel : NSObject

@property (nonatomic, assign) CGFloat value;
@property (nonatomic, strong) UIColor * color;

- (instancetype)initWithVaule:(CGFloat)vaule color:(UIColor *)color;

@end

@interface PieView : UIView

@property (nonatomic, copy) NSArray<PieModel *> * pieModelArray;
@property (nonatomic, assign) CGFloat offSet;

- (instancetype)initWithFrame:(CGRect)frame pieModels:(NSArray<PieModel *> *)pieModelArray offset:(CGFloat)offset;

// 刷新界面
- (void)reloadDatas;

@end















